/*
 * Copyright (c) 2011 Ondrej Lapacek
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License. You may
 * obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

/**
 * @author      Ondrej Lapacek
 * @version     1.0, 09/12/11
 * @since       1.0
 */

package cz.muni.fi.android.assistivecamera.osm.model;

import java.util.Collections;
import java.util.Map;

public class OsmData {

    private Map<Long, Node> nodes;
    private Map<Long, Way> ways;
    private Map<Long, Relation> relations;

    public OsmData(Map<Long, Node> nodes, Map<Long, Way> ways, Map<Long, Relation> relations) {
        this.nodes = nodes;
        this.ways = ways;
        this.relations = relations;
    }

    public Map<Long, Node> getNodes() {
    	if(nodes!=null)
    		return Collections.unmodifiableMap(this.nodes);
    	return null;
    }

    public Map<Long, Way> getWays() {
        if(ways!=null){
        	return Collections.unmodifiableMap(this.ways);
        }
        return null;
    }
    
    public Map<Long, Relation> getRelations() {
        if(relations!=null){
        	return Collections.unmodifiableMap(this.relations);
        }
        return null;
    }
}
